//
//  CLUIBaseTableViewController.h
//  CityHunter
//
//  Created by chuanqixiong on 14/11/25.
//  Copyright (c) 2014年 CieNet. All rights reserved.
//

#import <UIKit/UIKit.h>
 #import <UIView+Toast.h>
#import "LocationGetObj.h"
#import "UserDataMarco.h"
#define RMB @"¥"

#import <MJRefresh.h>
 #define CELLACCESSORYIMG @"pub_title_backbtn_rightarrow"
#define TOP_POINT [NSValue valueWithCGPoint:CGPointMake([UIScreen mainScreen].bounds.size.width / 2, ([UIScreen mainScreen].bounds.size.height  / 2.6) )]
#define kNavigationBtnSpaceHorizontal 5.0f
#define kNavigationBtnSpaceVertical 10.0f
#define kNavigationBtnHeight (self.navigationController.navigationBar.frame.size.height - 2 * kNavigationBtnSpaceVertical)

@interface CLUIBaseTableViewController : UITableViewController <UIGestureRecognizerDelegate,AddressGeo,LocationDelegate,UITableViewDataSource,UITableViewDelegate>
 @property (nonatomic, strong) LocationGetObj *locationSer;

- (void)showNavBarWithRightTitle:(NSString *)rightTitle andRightAction:(SEL)raction andLeftAction:(SEL)laction                   andShowRightBtn:(BOOL) isShow;
- (void)showNavBarWithRightTitle:(NSString *)rightTitle
                  andRightAction:(SEL)raction
                   andLeftAction:(SEL)laction
                     andFontSize:(CGFloat)size
                   andRightWidth:(CGFloat)width;
- (void)showNavBarWithTitle:(NSString *)title;
- (void)setNavBarBgImgView:(NSString *)imageStr;
- (void)backTo;
- (void)rightBtnAction;
 
- (void)setAccessoryView:(UITableViewCell *)cell;

- (void)displayMask;
- (void)hideMask;
- (void)displayProgressHUD:(NSString *)titile;
- (void)hideProgressHUD;
- (void)hideActionSheets; 
- (void)addTableHeaderViewOrFooterView:(BOOL)bol;
- (BOOL)isPresent;

//-(void)networkingStartHandleWithRequestIdentifier:(RequestIdentifier)identifier;
//-(void)networkingCompleteHandleWithRequestIdentifier:(RequestIdentifier)identifier;
//-(void)networkingFailureHandleWithRequestIdentifier:(RequestIdentifier)identifier errorMessage:(NSString *)message;
// - (void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;
//- (UIViewController*)popToViewControllerKindClass:(id)viewControllerClass animated:(BOOL)animated;
//- (UIViewController*)popToViewControllerMemberClass:(id)viewControllerClass animated:(BOOL)animated;

- (void)retryLogin;

@end
